import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
// 引入css
import '../../styles/mine/Card.css'

class Card extends Component {
    // 去详情页
    toCollection() {
        this.props.history.push({ pathname: '/collection' })
    }
    render() {
        return (
            <div className='card'>
                <div className='content'>
                    <div onClick={() => { this.toCollection() }}>
                        <span>1</span>
                        <span>收藏</span>
                    </div>
                    <div >
                        <span>0</span>
                        <span>积分</span>
                    </div>
                    <div >
                        <span>0</span>
                        <span>优惠卷</span>
                    </div>
                </div>
            </div>
        );
    }
}

export default withRouter(Card);